package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SubsidyapplicationsMapper;
import com.ruoyi.system.domain.Subsidyapplications;
import com.ruoyi.system.service.ISubsidyapplicationsService;

/**
 * 支付申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
@Service
public class SubsidyapplicationsServiceImpl implements ISubsidyapplicationsService 
{
    @Autowired
    private SubsidyapplicationsMapper subsidyapplicationsMapper;

    /**
     * 查询支付申请
     * 
     * @param id 支付申请主键
     * @return 支付申请
     */
    @Override
    public Subsidyapplications selectSubsidyapplicationsById(Long id)
    {
        return subsidyapplicationsMapper.selectSubsidyapplicationsById(id);
    }

    /**
     * 查询支付申请列表
     * 
     * @param subsidyapplications 支付申请
     * @return 支付申请
     */
    @Override
    public List<Subsidyapplications> selectSubsidyapplicationsList(Subsidyapplications subsidyapplications)
    {
        return subsidyapplicationsMapper.selectSubsidyapplicationsList(subsidyapplications);
    }

    /**
     * 新增支付申请
     * 
     * @param subsidyapplications 支付申请
     * @return 结果
     */
    @Override
    public int insertSubsidyapplications(Subsidyapplications subsidyapplications)
    {
        return subsidyapplicationsMapper.insertSubsidyapplications(subsidyapplications);
    }

    /**
     * 修改支付申请
     * 
     * @param subsidyapplications 支付申请
     * @return 结果
     */
    @Override
    public int updateSubsidyapplications(Subsidyapplications subsidyapplications)
    {
        return subsidyapplicationsMapper.updateSubsidyapplications(subsidyapplications);
    }

    /**
     * 批量删除支付申请
     * 
     * @param ids 需要删除的支付申请主键
     * @return 结果
     */
    @Override
    public int deleteSubsidyapplicationsByIds(Long[] ids)
    {
        return subsidyapplicationsMapper.deleteSubsidyapplicationsByIds(ids);
    }

    /**
     * 删除支付申请信息
     * 
     * @param id 支付申请主键
     * @return 结果
     */
    @Override
    public int deleteSubsidyapplicationsById(Long id)
    {
        return subsidyapplicationsMapper.deleteSubsidyapplicationsById(id);
    }
}
